<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Invoice extends Model
{
    protected $casts = [
        'values' => 'json',
        'last_used' => 'datetime',
    ];

    const EXAMPLE_PERSON = [
        'type' => 'person',
        'mobile' => '13212341234',
        'email' => 'example@example.com',
    ];

    const EXAMPLE_COMPANY = [
        'type' => 'company',
        'mobile' => '13212341234',
        'email' => 'example@example.com',
        'company' => '月上生活馆有限公司',
        'taxpayer_code' => '1234567890'
    ];
}
